package cn.sherer.beans.weixin;

/**
 * 微信登录
 */
public class WxLogin extends WxResult {
    // 公用
    private String openid;
    private String unionid;

    // 公众号、网站、APP 公用
    private String access_token;
    private int expires_in;
    private String refresh_token;
    private String scope;

    // 公众号
    private int is_snapshotuser;

    // 小程序
    private String session_key;

    public WxLogin() {
    }

    public WxLogin(int errcode, String errmsg) {
        super(errcode, errmsg);
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getUnionid() {
        return unionid;
    }

    public void setUnionid(String unionid) {
        this.unionid = unionid;
    }

    public String getAccess_token() {
        return access_token;
    }

    public void setAccess_token(String access_token) {
        this.access_token = access_token;
    }

    public int getExpires_in() {
        return expires_in;
    }

    public void setExpires_in(int expires_in) {
        this.expires_in = expires_in;
    }

    public String getRefresh_token() {
        return refresh_token;
    }

    public void setRefresh_token(String refresh_token) {
        this.refresh_token = refresh_token;
    }

    public String getScope() {
        return scope;
    }

    public void setScope(String scope) {
        this.scope = scope;
    }

    public int getIs_snapshotuser() {
        return is_snapshotuser;
    }

    public void setIs_snapshotuser(int is_snapshotuser) {
        this.is_snapshotuser = is_snapshotuser;
    }

    public String getSession_key() {
        return session_key;
    }

    public void setSession_key(String session_key) {
        this.session_key = session_key;
    }

    @Override
    public String toString() {
        return "WxLogin{" + "errcode=" + this.getErrcode() + ", errmsg=" + this.getErrmsg() + ", openid=" + openid + ", unionid=" + unionid + ", access_token=" + access_token + ", expires_in=" + expires_in + ", refresh_token=" + refresh_token + ", scope=" + scope + ", is_snapshotuser=" + is_snapshotuser + ", session_key=" + session_key + '}';
    }
}
